<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link type="text/css" rel="stylesheet" href="{TPL}css/AddItemPanel.css">
<link type="text/css" rel="stylesheet" href="{TPL}css/NewTopFoot.css"  />
<link type="text/css" id="styleName" rel="stylesheet" href="{TPL}css/blue/color.css"/ >    
<link type="text/css" rel="stylesheet" href="{TPL}css/orderList.css"/>
<script src="{TPL}js/jquery-1.4.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="{TPL}js/wdggcGobal.js"></script>
 <script src="{TPL}js/Gobal.js" type="text/javascript"></script>
<title>{lang m_ship_form_post} - {lang g_webname}</title>
</head>
<body>
{template 'header'}
  <div class="admin">
        <div class="ding">
            <div class="shouye">
                <a href="{url_m.php}" title="{lang u_member_center}">{lang m_my_center}</a>
            </div>
            <div class="lb">
               <div class="weizhi">
                      <b>{lang m_location}：</b><a href="{url_m.php}">{lang u_member_center}</a><span>&gt;</span>{lang m_choose_ship_ty}
                  </div>
                <div class="shezhi">
                    <p>
                        <a href="{url_m.php}">{lang u_member_center}</a><span>|</span>{lang m_set_style}：</p>
                    <ul>
                        <li onClick="changeStyle('orange')" class="mypanliS1"></li>
                        <li onClick="changeStyle('grey')" class="mypanliS2"></li>
                        <li onClick="changeStyle('blue')" class="mypanliS3"></li>
                    </ul>
                </div>
            </div>
        </div>
{template 'member_left'}
<script type="text/javascript" src="{TPL}js/Country.js"></script>
<script>

//提交校验
function submitTosendorder() {
	
	if (document.getElementById("consignee").value.length == 0)
	{
		alert("{lang m_reciever_name_r}"); 
		return (false);
	}
	if (document.getElementById("address").value.length == 0)
	{
		alert("{lang m_reciever_address_r}"); 
		return (false);
	}
	if (document.getElementById("tel").value.length == 0)
	{
		alert("{lang m_reciever_tel_r}"); 
		return (false);
	}
	//if (!confirm("您确定要提交此运单吗？")) return false;
	return true;
}
</script>
<form method="post" enctype="multipart/form-data" name="form" onSubmit="return submitTosendorder()">
<input type="hidden" name="action" value="save"/>
<input type="hidden" name="oids" value="{$ids}"/>
<input type="hidden" name="LOCKDATA" value="{$LOCKDATA}"/>
    <div class="fill">
        <div class="circuit_3">
            <img alt="{lang m_step}" src="{TPL}images/donghua.gif">
        </div>
	<div class="o_wu">
		<div class="hg bg"><h1>{lang m_post_goods_list}</h1><h3><a href="###" id=""></a></h3></div>
        <div class="add_text" id="" style="">
        <ul>
		{loop $dataarray $key $r}
          <li>{echo $key+1}、<a href="{$r['goodsurl']}" target="_blank">{$r['goodsname']}</a>，{lang s_price}:{$r['goodsprice']}，{lang s_num}:{$r['goodsnum']}</li>
		{/loop}
		  <li>{lang s_total}：  <font color=red>{lang s_price_ext}{$countmoney}</font> &nbsp;&nbsp;&nbsp;&nbsp;{lang s_fore_weight}:{$countweight} &nbsp;&nbsp;&nbsp;&nbsp;{lang s_fore_sbj}{$countsbj} / USD{$dy_sbjusd}</li>
        </ul>          
        </div>	
	</div>
      <div class="o_wu">
      <div class="hg bg"><h1>{lang m_confirm_reciever_address}</h1><h3><a href="###" id="showalladdress">{lang m_show_all_address}</a></h3></div>
        
        <table width="100%" border="1" cellspacing="0" cellpadding="0" style="margin-left:0px;">
          <tbody>
				  <tr>
					<td class="z" style="padding:3px">{lang m_reciever}:</td>
					<td style="padding:3px">
						<input type="text" value=""  maxlength="180" id="consignee" name="consignee" class="">
						<p style=""></p>
					</td>
				  </tr>
				  <tr>
					<td class="z" style="padding:3px">{lang m_comm_tel}:</td>
					<td style="padding:3px">
						<input type="text" value=""  maxlength="80" id="tel" name="tel" class="">
						<p style=""></p>
					</td>
				  </tr>
				  <tr style="display:none;">
					<td class="z" style="padding:3px">{lang m_city}:</td>
					<td style="padding:3px">
						<input type="text" value="city"  maxlength="80" id="city" name="city" class="">
						<p style=""></p>
					</td>
				  </tr>
				  <tr style="display:none;">
					<td class="z" style="padding:3px">{lang m_postal}:</td>
					<td style="padding:3px">
						<input type="text" value="100000"  maxlength="80" id="zip" name="zip" class="">
						<p style=""></p>
					</td>
				  </tr>
				  <tr>
					<td class="z" style="padding:3px">{lang m_reciever_address}:</td>
					<td style="padding:3px">
						<textarea style="border:1px solid gray;margin: 0px;" rows="4" cols="50" id="address" name="address">
						</textarea>
						<p style=""></p>
					</td>
				  </tr>
				  <tr>
					<td class="z" style="padding:3px">{lang m_reciever_area}:</td>
                                        <td style="padding:3px">
											<?php $area_data = "";
												  $area1st = "";
												  $packlist =array();
												  while($showPack = mysql_fetch_array($showPackareasql)){ 
													  if($area_data != $showPack['master_area'])
													  {
														 $area_data = $showPack['master_area'];
														 if($area1st == "")
														 {
															$area1st = $area_data;
														 }
														 
														 $packlist[$showPack["master_area"]] = $showPack["master_area"];
													  }
												  
												  } 
												  echo getcheckedstr('areaname', $packlist, $area1st);
											?>
                                        </td>
				  </tr>
				  <tr>
					<td class="z" style="padding:3px">{lang m_ship_ty}:</td>
                                        <td style="padding:3px">
										
										  <?php $deliver_data = "";
												  $deliver1st = "";
												  $packdeliverlist =array();
												  while($showPackdeliver = mysql_fetch_array($showPacksql)){ 
													  if($deliver_data != $showPackdeliver['master_name'])
													  {
														 $deliver_data = $showPackdeliver['master_name'];
														 if($deliver1st == "")
														 {
															$deliver1st = $deliver_data;
														 }
														 
														 $packdeliverlist[$showPackdeliver["master_name"]] = $showPackdeliver["master_name"];
													  }
												  
												  } 
												  echo getcheckedstr('deliveryname', $packdeliverlist, $deliver1st);
											?>
                                        </td>
                                  </tr>
				  <tr style="display:none;">
					<td class="z">{lang m_ship_cate}</td>
                                        <td>
                                          {lang m_fee_ship}
                                        </td>
                                  </tr>
				  <tr>
					<td class="z" style="padding:3px"></td>
                                        <td style="padding:3px;display:none">
                                          <input style="width:15px;float:none;" type="checkbox" value="特急" name="tejicheck" id="tejicheck"> {lang m_quick_extr}&nbsp;&nbsp;
											<input type="hidden" value=""  maxlength="80" id="teji" name="teji" class="">
											<b style="color:red">-{lang m_ship_fee_instr1}{lang s_price_ext}{$tejiamt}</b>
										</td>
                                  </tr>
				  <tr style="display:none">
					<td class="z" style="padding:3px">{lang m_query_tax}:</td>
                                        <td style="padding:3px">
                                          <input style="width:15px;float:none;"  style="width:15px;float:none;" type="radio" value="1" name="is_tariff">{lang m_query_tax_y}&nbsp;&nbsp;<input type="radio" value="0" name="is_tariff" checked="checked" style="width:15px;float:none;" >{lang m_query_tax_n}
						<p style=""></p>
                                        </td>
                                  </tr>
				  <tr style="display:none;">
                                    <td class="z" style="padding:3px">{lang m_query_insure}:</td>
                                    <td style="padding:3px"><input type="text" value="0" class="input_text_50" id="safe_price" name="safe_price">RM
                                    <p>  {lang m_ship_fee_instr2}</p>
                                    </td>
                                  </tr>
          <tr class="font_14">
            <td width="146" align="center" valign="bottom"><div class="next">
              <input type="submit" value="{lang m_ship_form_post_check}" onmouseout="this.className=''" onmouseover="this.className='by'" />
            </div></td>
          </tr>
        </table>
      </div>
    </div>
</form>
<div class="yj">
        </div>
    </div>
{template 'footer'}
</body>
</html>